package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.PatientMedicalDetail;

public interface PatientMedicalDetailDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 根据总价单编号查询
	 * @param patientMedicalDetail
	 * @return
	 */
	public abstract List<PatientMedicalDetail> findByPmpid(
			PatientMedicalDetail patientMedicalDetail);

	/**
	 * 自定义查询
	 * @param hql
	 * @param pageNum
	 * @return
	 */
	public abstract List<PatientMedicalDetail> findAllByCondition(String hql,
			Integer pageNum);

	/**
	 * 自定义查询分页
	 * @param tempHQL
	 * @return
	 */
	public abstract List<Integer> selectPageTotal(String tempHQL);

	/**
	 * 新增
	 * @param patientMedicalDetail
	 */
	public abstract void save(PatientMedicalDetail patientMedicalDetail);

	/**
	 * 修改
	 * @param patientMedicalDetail
	 */
	public abstract void update(PatientMedicalDetail patientMedicalDetail);

	/**
	 * 删除
	 * @param patientMedicalDetail
	 */
	public abstract void delete(PatientMedicalDetail patientMedicalDetail);

	/**
	 * 查询单个
	 * @param patientMedicalDetail
	 * @return
	 */
	public abstract PatientMedicalDetail findObject(
			PatientMedicalDetail patientMedicalDetail);

}